﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using Skin;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using SettingManager;

namespace ETach
{
    public partial class Main : Form
    {
        public void LoadCurrentControls(Control control, string type)
        {
            //Brush brush = SkinManager.GetBrush(type, "BG");
            //Brush brush2 = SkinManager.GetBrush(type, "BB");
            //Brush brush3 = SkinManager.GetBrush(type, "FG");
            //control.BackColor = SkinManager.GetBrush(type, "BG");
        }

        public Main()
        {
            InitializeComponent();
            
        }

        private void Main_Load(object sender, EventArgs e)
        {
            this.Width = Convert.ToInt32(Setting_Class.MainSettings.Root.Element("WindowSize").Attribute("Width").Value);
            this.Height = Convert.ToInt32(Setting_Class.MainSettings.Root.Element("WindowSize").Attribute("Height").Value);

        }
    }
}
